package org.example.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class DefaultController {

    @ResponseBody
    @GetMapping("index")
    public String indexPage() {
        return "demo ...";
    }

    @GetMapping(value = {"", "default"})
    public String defaultPage() {
        return "default";
    }

    @GetMapping("default1")
    public String default1Page() {
        return "default1";
    }

    @GetMapping("default2")
    public String default2Page() {
        return "default2";
    }
}
